﻿// -----------------------------------------------------------------------
// <copyright file="Avanza.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Cspl.Project.Interface
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class Avanza : ICar
    {
        private bool _isStarted = false;

        public void StartTheCar()
        {
            if(_isStarted)
            {
                Console.WriteLine("Avanza car has been started");
            }
            else
            {
                Console.WriteLine("Start avanza car.");
            }

            _isStarted = true;
        }

        public void StopTheCar()
        {
            if(_isStarted)
            {
                Console.WriteLine("Stop Avanza car");
            }
            else
            {
                Console.WriteLine("Avanza car has been stopped");
            }

            _isStarted = false;
        }
    }
}
